package com.svo.md.service.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.b510.bean.Person;
import com.svo.md.bean.UserEntity;

public class UserRowMapper implements RowMapper<UserEntity> {

    @Override
    public UserEntity mapRow(ResultSet set, int index) throws SQLException {
    	UserEntity person = new UserEntity();
        person.setId(set.getInt("id"));
        person.setDevId(set.getString("devId"));
        person.setStartTime(set.getTimestamp("startTime"));
        person.setEndTime(set.getTimestamp("endTime"));
        return person;
    }

}